package com.agriculture.system.api.domain;

import com.agriculture.common.core.annotation.Excel;
import com.agriculture.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 用户对象 cy_user
 *
 * @author agriculture
 * @date 2025-03-20
 */
public class CyUser extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 名字
     */
    @Excel(name = "名字")
    private String name;

    /**
     * 手机号
     */
    @Excel(name = "手机号")
    private String phone;

    /**
     * 机构id
     */
    @Excel(name = "机构id")
    private Long orgCode;

    /**
     * 机构名
     */
    @Excel(name = "机构名")
    private String orgName;

    /**
     * 1:会员 0：非会员
     */
    @Excel(name = "1:会员 0：非会员")
    private String isMember;

    /**
     * 会员开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "会员开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date memberStart;

    /**
     * 会员结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "会员结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date memberEnd;

    /**
     * 客户经理id
     */
    @Excel(name = "客户经理id")
    private Long accountManagerId;

    /**
     * 客户经理名字
     */
    @Excel(name = "客户经理名字")
    private String accountManagerName;

    /**
     * 角色id
     */
    @Excel(name = "角色id")
    private Long roleId;

    /**
     * 角色名
     */
    @Excel(name = "角色名")
    private String roleName;

    /**
     * 1:单点 0：ip范围
     */
    @Excel(name = "1:单点 0：ip范围")
    private String loginType;

    /**
     * ip开始
     */
    @Excel(name = "ip开始")
    private String ipStart;

    /**
     * IP结束
     */
    @Excel(name = "IP结束")
    private String ipEnd;

    /**
     * 1：男0：女
     */
    @Excel(name = "1：男0：女")
    private String gender;

    /**
     * 1:启用 0：停用
     */
    @Excel(name = "1:启用 0：停用")
    private String status;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String createUser;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String updateUser;

    private Long userId;


    /**
     * 0：1月
     * 1：3月
     * 2：6月
     * 3：一年
     */
    private String rang;


    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Long getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(Long orgCode) {
        this.orgCode = orgCode;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getIsMember() {
        return isMember;
    }

    public void setIsMember(String isMember) {
        this.isMember = isMember;
    }

    public Date getMemberStart() {
        return memberStart;
    }

    public void setMemberStart(Date memberStart) {
        this.memberStart = memberStart;
    }

    public Date getMemberEnd() {
        return memberEnd;
    }

    public void setMemberEnd(Date memberEnd) {
        this.memberEnd = memberEnd;
    }

    public Long getAccountManagerId() {
        return accountManagerId;
    }

    public void setAccountManagerId(Long accountManagerId) {
        this.accountManagerId = accountManagerId;
    }

    public String getAccountManagerName() {
        return accountManagerName;
    }

    public void setAccountManagerName(String accountManagerName) {
        this.accountManagerName = accountManagerName;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getLoginType() {
        return loginType;
    }

    public void setLoginType(String loginType) {
        this.loginType = loginType;
    }

    public String getIpStart() {
        return ipStart;
    }

    public void setIpStart(String ipStart) {
        this.ipStart = ipStart;
    }

    public String getIpEnd() {
        return ipEnd;
    }

    public void setIpEnd(String ipEnd) {
        this.ipEnd = ipEnd;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getRang() {
        return rang;
    }

    public void setRang(String rang) {
        this.rang = rang;
    }
}
